package com.ruoyi.cms.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文档管理对象 cms_dm
 *
 * @author anjie
 * @date 2020-06-06
 */
public class CmsDm extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 摘要 */
    private String abstractstr;

    /** 语言 */
    @Excel(name = "语言")
    private String language;

    /** 外链 */
    @Excel(name = "外链")
    private String link;

    /** 文件 */
    @Excel(name = "文件")
    private String file;

    /** 分类id */
    @Excel(name = "分类id")
    private Long cid;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String cname;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setAbstractstr(String abstractstr)
    {
        this.abstractstr = abstractstr;
    }

    public String getAbstractstr()
    {
        return abstractstr;
    }
    public void setLanguage(String language)
    {
        this.language = language;
    }

    public String getLanguage()
    {
        return language;
    }
    public void setFile(String file)
    {
        this.file = file;
    }

    public String getFile()
    {
        return file;
    }

    public Long getCid() {return cid;}

    public void setCid(Long cid) {this.cid = cid; }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("cid", getCid())
            .append("cname", getCname())
            .append("abstractstr", getAbstractstr())
            .append("language", getLanguage())
            .append("file", getFile())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .toString();
    }
}
